package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AccOffMaterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccOffMaterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMatIdIsNull() {
            addCriterion("mat_id is null");
            return (Criteria) this;
        }

        public Criteria andMatIdIsNotNull() {
            addCriterion("mat_id is not null");
            return (Criteria) this;
        }

        public Criteria andMatIdEqualTo(Integer value) {
            addCriterion("mat_id =", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdNotEqualTo(Integer value) {
            addCriterion("mat_id <>", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdGreaterThan(Integer value) {
            addCriterion("mat_id >", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mat_id >=", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdLessThan(Integer value) {
            addCriterion("mat_id <", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdLessThanOrEqualTo(Integer value) {
            addCriterion("mat_id <=", value, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdIn(List<Integer> values) {
            addCriterion("mat_id in", values, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdNotIn(List<Integer> values) {
            addCriterion("mat_id not in", values, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdBetween(Integer value1, Integer value2) {
            addCriterion("mat_id between", value1, value2, "matId");
            return (Criteria) this;
        }

        public Criteria andMatIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mat_id not between", value1, value2, "matId");
            return (Criteria) this;
        }

        public Criteria andMatNameIsNull() {
            addCriterion("mat_name is null");
            return (Criteria) this;
        }

        public Criteria andMatNameIsNotNull() {
            addCriterion("mat_name is not null");
            return (Criteria) this;
        }

        public Criteria andMatNameEqualTo(String value) {
            addCriterion("mat_name =", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameNotEqualTo(String value) {
            addCriterion("mat_name <>", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameGreaterThan(String value) {
            addCriterion("mat_name >", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameGreaterThanOrEqualTo(String value) {
            addCriterion("mat_name >=", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameLessThan(String value) {
            addCriterion("mat_name <", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameLessThanOrEqualTo(String value) {
            addCriterion("mat_name <=", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameLike(String value) {
            addCriterion("mat_name like", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameNotLike(String value) {
            addCriterion("mat_name not like", value, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameIn(List<String> values) {
            addCriterion("mat_name in", values, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameNotIn(List<String> values) {
            addCriterion("mat_name not in", values, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameBetween(String value1, String value2) {
            addCriterion("mat_name between", value1, value2, "matName");
            return (Criteria) this;
        }

        public Criteria andMatNameNotBetween(String value1, String value2) {
            addCriterion("mat_name not between", value1, value2, "matName");
            return (Criteria) this;
        }

        public Criteria andMatCodeIsNull() {
            addCriterion("mat_code is null");
            return (Criteria) this;
        }

        public Criteria andMatCodeIsNotNull() {
            addCriterion("mat_code is not null");
            return (Criteria) this;
        }

        public Criteria andMatCodeEqualTo(String value) {
            addCriterion("mat_code =", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeNotEqualTo(String value) {
            addCriterion("mat_code <>", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeGreaterThan(String value) {
            addCriterion("mat_code >", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeGreaterThanOrEqualTo(String value) {
            addCriterion("mat_code >=", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeLessThan(String value) {
            addCriterion("mat_code <", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeLessThanOrEqualTo(String value) {
            addCriterion("mat_code <=", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeLike(String value) {
            addCriterion("mat_code like", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeNotLike(String value) {
            addCriterion("mat_code not like", value, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeIn(List<String> values) {
            addCriterion("mat_code in", values, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeNotIn(List<String> values) {
            addCriterion("mat_code not in", values, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeBetween(String value1, String value2) {
            addCriterion("mat_code between", value1, value2, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatCodeNotBetween(String value1, String value2) {
            addCriterion("mat_code not between", value1, value2, "matCode");
            return (Criteria) this;
        }

        public Criteria andMatSizeIsNull() {
            addCriterion("mat_size is null");
            return (Criteria) this;
        }

        public Criteria andMatSizeIsNotNull() {
            addCriterion("mat_size is not null");
            return (Criteria) this;
        }

        public Criteria andMatSizeEqualTo(String value) {
            addCriterion("mat_size =", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeNotEqualTo(String value) {
            addCriterion("mat_size <>", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeGreaterThan(String value) {
            addCriterion("mat_size >", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeGreaterThanOrEqualTo(String value) {
            addCriterion("mat_size >=", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeLessThan(String value) {
            addCriterion("mat_size <", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeLessThanOrEqualTo(String value) {
            addCriterion("mat_size <=", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeLike(String value) {
            addCriterion("mat_size like", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeNotLike(String value) {
            addCriterion("mat_size not like", value, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeIn(List<String> values) {
            addCriterion("mat_size in", values, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeNotIn(List<String> values) {
            addCriterion("mat_size not in", values, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeBetween(String value1, String value2) {
            addCriterion("mat_size between", value1, value2, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatSizeNotBetween(String value1, String value2) {
            addCriterion("mat_size not between", value1, value2, "matSize");
            return (Criteria) this;
        }

        public Criteria andMatTypeIsNull() {
            addCriterion("mat_type is null");
            return (Criteria) this;
        }

        public Criteria andMatTypeIsNotNull() {
            addCriterion("mat_type is not null");
            return (Criteria) this;
        }

        public Criteria andMatTypeEqualTo(String value) {
            addCriterion("mat_type =", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeNotEqualTo(String value) {
            addCriterion("mat_type <>", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeGreaterThan(String value) {
            addCriterion("mat_type >", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeGreaterThanOrEqualTo(String value) {
            addCriterion("mat_type >=", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeLessThan(String value) {
            addCriterion("mat_type <", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeLessThanOrEqualTo(String value) {
            addCriterion("mat_type <=", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeLike(String value) {
            addCriterion("mat_type like", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeNotLike(String value) {
            addCriterion("mat_type not like", value, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeIn(List<String> values) {
            addCriterion("mat_type in", values, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeNotIn(List<String> values) {
            addCriterion("mat_type not in", values, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeBetween(String value1, String value2) {
            addCriterion("mat_type between", value1, value2, "matType");
            return (Criteria) this;
        }

        public Criteria andMatTypeNotBetween(String value1, String value2) {
            addCriterion("mat_type not between", value1, value2, "matType");
            return (Criteria) this;
        }

        public Criteria andMatLevelIsNull() {
            addCriterion("mat_level is null");
            return (Criteria) this;
        }

        public Criteria andMatLevelIsNotNull() {
            addCriterion("mat_level is not null");
            return (Criteria) this;
        }

        public Criteria andMatLevelEqualTo(String value) {
            addCriterion("mat_level =", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelNotEqualTo(String value) {
            addCriterion("mat_level <>", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelGreaterThan(String value) {
            addCriterion("mat_level >", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelGreaterThanOrEqualTo(String value) {
            addCriterion("mat_level >=", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelLessThan(String value) {
            addCriterion("mat_level <", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelLessThanOrEqualTo(String value) {
            addCriterion("mat_level <=", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelLike(String value) {
            addCriterion("mat_level like", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelNotLike(String value) {
            addCriterion("mat_level not like", value, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelIn(List<String> values) {
            addCriterion("mat_level in", values, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelNotIn(List<String> values) {
            addCriterion("mat_level not in", values, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelBetween(String value1, String value2) {
            addCriterion("mat_level between", value1, value2, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatLevelNotBetween(String value1, String value2) {
            addCriterion("mat_level not between", value1, value2, "matLevel");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocIsNull() {
            addCriterion("mat_spe_loc is null");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocIsNotNull() {
            addCriterion("mat_spe_loc is not null");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocEqualTo(String value) {
            addCriterion("mat_spe_loc =", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocNotEqualTo(String value) {
            addCriterion("mat_spe_loc <>", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocGreaterThan(String value) {
            addCriterion("mat_spe_loc >", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocGreaterThanOrEqualTo(String value) {
            addCriterion("mat_spe_loc >=", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocLessThan(String value) {
            addCriterion("mat_spe_loc <", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocLessThanOrEqualTo(String value) {
            addCriterion("mat_spe_loc <=", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocLike(String value) {
            addCriterion("mat_spe_loc like", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocNotLike(String value) {
            addCriterion("mat_spe_loc not like", value, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocIn(List<String> values) {
            addCriterion("mat_spe_loc in", values, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocNotIn(List<String> values) {
            addCriterion("mat_spe_loc not in", values, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocBetween(String value1, String value2) {
            addCriterion("mat_spe_loc between", value1, value2, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatSpeLocNotBetween(String value1, String value2) {
            addCriterion("mat_spe_loc not between", value1, value2, "matSpeLoc");
            return (Criteria) this;
        }

        public Criteria andMatDepartIsNull() {
            addCriterion("mat_depart is null");
            return (Criteria) this;
        }

        public Criteria andMatDepartIsNotNull() {
            addCriterion("mat_depart is not null");
            return (Criteria) this;
        }

        public Criteria andMatDepartEqualTo(String value) {
            addCriterion("mat_depart =", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartNotEqualTo(String value) {
            addCriterion("mat_depart <>", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartGreaterThan(String value) {
            addCriterion("mat_depart >", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartGreaterThanOrEqualTo(String value) {
            addCriterion("mat_depart >=", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartLessThan(String value) {
            addCriterion("mat_depart <", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartLessThanOrEqualTo(String value) {
            addCriterion("mat_depart <=", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartLike(String value) {
            addCriterion("mat_depart like", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartNotLike(String value) {
            addCriterion("mat_depart not like", value, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartIn(List<String> values) {
            addCriterion("mat_depart in", values, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartNotIn(List<String> values) {
            addCriterion("mat_depart not in", values, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartBetween(String value1, String value2) {
            addCriterion("mat_depart between", value1, value2, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatDepartNotBetween(String value1, String value2) {
            addCriterion("mat_depart not between", value1, value2, "matDepart");
            return (Criteria) this;
        }

        public Criteria andMatSourceIsNull() {
            addCriterion("mat_source is null");
            return (Criteria) this;
        }

        public Criteria andMatSourceIsNotNull() {
            addCriterion("mat_source is not null");
            return (Criteria) this;
        }

        public Criteria andMatSourceEqualTo(String value) {
            addCriterion("mat_source =", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceNotEqualTo(String value) {
            addCriterion("mat_source <>", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceGreaterThan(String value) {
            addCriterion("mat_source >", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceGreaterThanOrEqualTo(String value) {
            addCriterion("mat_source >=", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceLessThan(String value) {
            addCriterion("mat_source <", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceLessThanOrEqualTo(String value) {
            addCriterion("mat_source <=", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceLike(String value) {
            addCriterion("mat_source like", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceNotLike(String value) {
            addCriterion("mat_source not like", value, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceIn(List<String> values) {
            addCriterion("mat_source in", values, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceNotIn(List<String> values) {
            addCriterion("mat_source not in", values, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceBetween(String value1, String value2) {
            addCriterion("mat_source between", value1, value2, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatSourceNotBetween(String value1, String value2) {
            addCriterion("mat_source not between", value1, value2, "matSource");
            return (Criteria) this;
        }

        public Criteria andMatPersonIsNull() {
            addCriterion("mat_person is null");
            return (Criteria) this;
        }

        public Criteria andMatPersonIsNotNull() {
            addCriterion("mat_person is not null");
            return (Criteria) this;
        }

        public Criteria andMatPersonEqualTo(String value) {
            addCriterion("mat_person =", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonNotEqualTo(String value) {
            addCriterion("mat_person <>", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonGreaterThan(String value) {
            addCriterion("mat_person >", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonGreaterThanOrEqualTo(String value) {
            addCriterion("mat_person >=", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonLessThan(String value) {
            addCriterion("mat_person <", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonLessThanOrEqualTo(String value) {
            addCriterion("mat_person <=", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonLike(String value) {
            addCriterion("mat_person like", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonNotLike(String value) {
            addCriterion("mat_person not like", value, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonIn(List<String> values) {
            addCriterion("mat_person in", values, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonNotIn(List<String> values) {
            addCriterion("mat_person not in", values, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonBetween(String value1, String value2) {
            addCriterion("mat_person between", value1, value2, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatPersonNotBetween(String value1, String value2) {
            addCriterion("mat_person not between", value1, value2, "matPerson");
            return (Criteria) this;
        }

        public Criteria andMatStatusIsNull() {
            addCriterion("mat_status is null");
            return (Criteria) this;
        }

        public Criteria andMatStatusIsNotNull() {
            addCriterion("mat_status is not null");
            return (Criteria) this;
        }

        public Criteria andMatStatusEqualTo(String value) {
            addCriterion("mat_status =", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusNotEqualTo(String value) {
            addCriterion("mat_status <>", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusGreaterThan(String value) {
            addCriterion("mat_status >", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusGreaterThanOrEqualTo(String value) {
            addCriterion("mat_status >=", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusLessThan(String value) {
            addCriterion("mat_status <", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusLessThanOrEqualTo(String value) {
            addCriterion("mat_status <=", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusLike(String value) {
            addCriterion("mat_status like", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusNotLike(String value) {
            addCriterion("mat_status not like", value, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusIn(List<String> values) {
            addCriterion("mat_status in", values, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusNotIn(List<String> values) {
            addCriterion("mat_status not in", values, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusBetween(String value1, String value2) {
            addCriterion("mat_status between", value1, value2, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatStatusNotBetween(String value1, String value2) {
            addCriterion("mat_status not between", value1, value2, "matStatus");
            return (Criteria) this;
        }

        public Criteria andMatInfoIsNull() {
            addCriterion("mat_info is null");
            return (Criteria) this;
        }

        public Criteria andMatInfoIsNotNull() {
            addCriterion("mat_info is not null");
            return (Criteria) this;
        }

        public Criteria andMatInfoEqualTo(String value) {
            addCriterion("mat_info =", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoNotEqualTo(String value) {
            addCriterion("mat_info <>", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoGreaterThan(String value) {
            addCriterion("mat_info >", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoGreaterThanOrEqualTo(String value) {
            addCriterion("mat_info >=", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoLessThan(String value) {
            addCriterion("mat_info <", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoLessThanOrEqualTo(String value) {
            addCriterion("mat_info <=", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoLike(String value) {
            addCriterion("mat_info like", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoNotLike(String value) {
            addCriterion("mat_info not like", value, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoIn(List<String> values) {
            addCriterion("mat_info in", values, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoNotIn(List<String> values) {
            addCriterion("mat_info not in", values, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoBetween(String value1, String value2) {
            addCriterion("mat_info between", value1, value2, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatInfoNotBetween(String value1, String value2) {
            addCriterion("mat_info not between", value1, value2, "matInfo");
            return (Criteria) this;
        }

        public Criteria andMatRemarkIsNull() {
            addCriterion("mat_remark is null");
            return (Criteria) this;
        }

        public Criteria andMatRemarkIsNotNull() {
            addCriterion("mat_remark is not null");
            return (Criteria) this;
        }

        public Criteria andMatRemarkEqualTo(String value) {
            addCriterion("mat_remark =", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkNotEqualTo(String value) {
            addCriterion("mat_remark <>", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkGreaterThan(String value) {
            addCriterion("mat_remark >", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("mat_remark >=", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkLessThan(String value) {
            addCriterion("mat_remark <", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkLessThanOrEqualTo(String value) {
            addCriterion("mat_remark <=", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkLike(String value) {
            addCriterion("mat_remark like", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkNotLike(String value) {
            addCriterion("mat_remark not like", value, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkIn(List<String> values) {
            addCriterion("mat_remark in", values, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkNotIn(List<String> values) {
            addCriterion("mat_remark not in", values, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkBetween(String value1, String value2) {
            addCriterion("mat_remark between", value1, value2, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatRemarkNotBetween(String value1, String value2) {
            addCriterion("mat_remark not between", value1, value2, "matRemark");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteIsNull() {
            addCriterion("mat_isdelete is null");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteIsNotNull() {
            addCriterion("mat_isdelete is not null");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteEqualTo(Integer value) {
            addCriterion("mat_isdelete =", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteNotEqualTo(Integer value) {
            addCriterion("mat_isdelete <>", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteGreaterThan(Integer value) {
            addCriterion("mat_isdelete >", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("mat_isdelete >=", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteLessThan(Integer value) {
            addCriterion("mat_isdelete <", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteLessThanOrEqualTo(Integer value) {
            addCriterion("mat_isdelete <=", value, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteIn(List<Integer> values) {
            addCriterion("mat_isdelete in", values, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteNotIn(List<Integer> values) {
            addCriterion("mat_isdelete not in", values, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteBetween(Integer value1, Integer value2) {
            addCriterion("mat_isdelete between", value1, value2, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatIsdeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("mat_isdelete not between", value1, value2, "matIsdelete");
            return (Criteria) this;
        }

        public Criteria andMatSortNumIsNull() {
            addCriterion("mat_sort_num is null");
            return (Criteria) this;
        }

        public Criteria andMatSortNumIsNotNull() {
            addCriterion("mat_sort_num is not null");
            return (Criteria) this;
        }

        public Criteria andMatSortNumEqualTo(Integer value) {
            addCriterion("mat_sort_num =", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumNotEqualTo(Integer value) {
            addCriterion("mat_sort_num <>", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumGreaterThan(Integer value) {
            addCriterion("mat_sort_num >", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("mat_sort_num >=", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumLessThan(Integer value) {
            addCriterion("mat_sort_num <", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumLessThanOrEqualTo(Integer value) {
            addCriterion("mat_sort_num <=", value, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumIn(List<Integer> values) {
            addCriterion("mat_sort_num in", values, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumNotIn(List<Integer> values) {
            addCriterion("mat_sort_num not in", values, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumBetween(Integer value1, Integer value2) {
            addCriterion("mat_sort_num between", value1, value2, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatSortNumNotBetween(Integer value1, Integer value2) {
            addCriterion("mat_sort_num not between", value1, value2, "matSortNum");
            return (Criteria) this;
        }

        public Criteria andMatCreUserIsNull() {
            addCriterion("mat_cre_user is null");
            return (Criteria) this;
        }

        public Criteria andMatCreUserIsNotNull() {
            addCriterion("mat_cre_user is not null");
            return (Criteria) this;
        }

        public Criteria andMatCreUserEqualTo(String value) {
            addCriterion("mat_cre_user =", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserNotEqualTo(String value) {
            addCriterion("mat_cre_user <>", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserGreaterThan(String value) {
            addCriterion("mat_cre_user >", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserGreaterThanOrEqualTo(String value) {
            addCriterion("mat_cre_user >=", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserLessThan(String value) {
            addCriterion("mat_cre_user <", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserLessThanOrEqualTo(String value) {
            addCriterion("mat_cre_user <=", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserLike(String value) {
            addCriterion("mat_cre_user like", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserNotLike(String value) {
            addCriterion("mat_cre_user not like", value, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserIn(List<String> values) {
            addCriterion("mat_cre_user in", values, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserNotIn(List<String> values) {
            addCriterion("mat_cre_user not in", values, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserBetween(String value1, String value2) {
            addCriterion("mat_cre_user between", value1, value2, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreUserNotBetween(String value1, String value2) {
            addCriterion("mat_cre_user not between", value1, value2, "matCreUser");
            return (Criteria) this;
        }

        public Criteria andMatCreDateIsNull() {
            addCriterion("mat_cre_date is null");
            return (Criteria) this;
        }

        public Criteria andMatCreDateIsNotNull() {
            addCriterion("mat_cre_date is not null");
            return (Criteria) this;
        }

        public Criteria andMatCreDateEqualTo(Date value) {
            addCriterion("mat_cre_date =", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateNotEqualTo(Date value) {
            addCriterion("mat_cre_date <>", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateGreaterThan(Date value) {
            addCriterion("mat_cre_date >", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateGreaterThanOrEqualTo(Date value) {
            addCriterion("mat_cre_date >=", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateLessThan(Date value) {
            addCriterion("mat_cre_date <", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateLessThanOrEqualTo(Date value) {
            addCriterion("mat_cre_date <=", value, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateIn(List<Date> values) {
            addCriterion("mat_cre_date in", values, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateNotIn(List<Date> values) {
            addCriterion("mat_cre_date not in", values, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateBetween(Date value1, Date value2) {
            addCriterion("mat_cre_date between", value1, value2, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatCreDateNotBetween(Date value1, Date value2) {
            addCriterion("mat_cre_date not between", value1, value2, "matCreDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserIsNull() {
            addCriterion("mat_upd_user is null");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserIsNotNull() {
            addCriterion("mat_upd_user is not null");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserEqualTo(String value) {
            addCriterion("mat_upd_user =", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserNotEqualTo(String value) {
            addCriterion("mat_upd_user <>", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserGreaterThan(String value) {
            addCriterion("mat_upd_user >", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserGreaterThanOrEqualTo(String value) {
            addCriterion("mat_upd_user >=", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserLessThan(String value) {
            addCriterion("mat_upd_user <", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserLessThanOrEqualTo(String value) {
            addCriterion("mat_upd_user <=", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserLike(String value) {
            addCriterion("mat_upd_user like", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserNotLike(String value) {
            addCriterion("mat_upd_user not like", value, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserIn(List<String> values) {
            addCriterion("mat_upd_user in", values, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserNotIn(List<String> values) {
            addCriterion("mat_upd_user not in", values, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserBetween(String value1, String value2) {
            addCriterion("mat_upd_user between", value1, value2, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdUserNotBetween(String value1, String value2) {
            addCriterion("mat_upd_user not between", value1, value2, "matUpdUser");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateIsNull() {
            addCriterion("mat_upd_date is null");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateIsNotNull() {
            addCriterion("mat_upd_date is not null");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateEqualTo(Date value) {
            addCriterion("mat_upd_date =", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateNotEqualTo(Date value) {
            addCriterion("mat_upd_date <>", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateGreaterThan(Date value) {
            addCriterion("mat_upd_date >", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateGreaterThanOrEqualTo(Date value) {
            addCriterion("mat_upd_date >=", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateLessThan(Date value) {
            addCriterion("mat_upd_date <", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateLessThanOrEqualTo(Date value) {
            addCriterion("mat_upd_date <=", value, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateIn(List<Date> values) {
            addCriterion("mat_upd_date in", values, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateNotIn(List<Date> values) {
            addCriterion("mat_upd_date not in", values, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateBetween(Date value1, Date value2) {
            addCriterion("mat_upd_date between", value1, value2, "matUpdDate");
            return (Criteria) this;
        }

        public Criteria andMatUpdDateNotBetween(Date value1, Date value2) {
            addCriterion("mat_upd_date not between", value1, value2, "matUpdDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}